package com.itheima;


import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

public class Demo5 {
    public static void main(String[] args) {

        Date date = new Date();
        long time = date.getTime();
        date.setTime(date.getTime() + (100L * 24 * 60 * 60 * 1000));

        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy年MM月dd日");

        String str = simpleDateFormat.format(date);
        System.out.println("项目上线日期是"+str);

        System.out.println("---------------");

        LocalDateTime now = LocalDateTime.now();
        LocalDateTime dateTime = now.plusDays(100);
        DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy年MM月dd日");
        String  dateStr  = dateTime.format(dateTimeFormatter);
        System.out.println(dateStr);
    }
}
